package com.dm.cloud.images.common.po;

import com.dm.cloud.basepo.po.BasePo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
   * @author hcx
   * @type ImagesAppTaskContainer.java
   * @desc ImagesAppTaskContainer
   */

@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_IMAGES_APP_TASK_CONTAINER")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "ImagesAppTaskContainer")
public class ImagesAppTaskContainer extends BasePo {

      /** 执行情况:0未执行  1正在执行 2完成 **/ 
      @Schema(description = "执行情况:0未执行  1正在执行 2完成")
      @Column(name = "status")
      private Integer status;
      /** 执行结果:0暂无结果 1成功  2异常  3超时 **/ 
      @Schema(description = "执行结果:0暂无结果 1成功  2异常  3超时")
      @Column(name = "result")
      private Integer result;
      /** 任务ID **/ 
      @Schema(description = "任务ID")
      @Column(name = "task_id")
      private String taskId;
      /** 容器ID **/ 
      @Schema(description = "容器ID")
      @Column(name = "container_id")
      private String containerId;
      /** 节点ID **/ 
      @Schema(description = "节点ID")
      @Column(name = "node_id")
      private String nodeId;
      @Schema(description = "错误信息")
      @Column(name = "err_str")
      private String errStr;
}
